package com.example.redstarcommerce.cn.dh.coupon.service;

import com.example.redstarcommerce.cn.dh.common.vo.Result;
import com.example.redstarcommerce.cn.dh.coupon.pojo.CouPon;

import java.sql.Timestamp;
import java.util.List;

/**
 * @ClassName CouPonService
 * @Author AndyWu
 * @Date 2024-11-01 22:34
 * @Motto 学不死就往死里学
 * @Version 1.0
 */

public interface CouPonService {



    //查询优惠券
     Result<List<CouPon>> getByCouPon(String name, String type, Float price, Integer num, Timestamp begintime, Timestamp endtime);


    Result<Boolean>  insertCouPon (String name, String type, Float price, Integer num, Timestamp begintime, Timestamp endtime);


    Result<Boolean> updateCouPon(Integer id, String name, String type, Float price, Integer num, Timestamp begintime, Timestamp endtime);


    Result<Boolean> deleteCouPon(Integer id);

    Result<List<CouPon>> getAllCouPon();
}
